package com.djj.nanny.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.djj.nanny.entity.ServiceOrder;

public interface ServiceOrderService {
    void createOrder(ServiceOrder order);

    void updateOrderStatus(Long id, Integer status, String reason);

    ServiceOrder getOrderById(Long id);

    Page<ServiceOrder> getOrdersByPage(Long userId, Long staffId, Integer status, Integer pageNum, Integer pageSize);

    void cancelOrder(Long id, String reason);
} 